// import { ISkillAddItem, ISkillListQuery,palnsList} from '@/utils';
import { request } from 'umi';
import { ISfenceTable, sss } from '@/utils/index'
//获取答辩专业
export let getDefanceList = () => {
    return request('/sxpt/station/selectStationLabel')
}
//获取答辩专业的表格接口
export let getDefenceTable = (params: ISfenceTable) => {
    return request("/sxpt/defence/getDefenceList?defenceId=", { params })
}
//获取详情页
export let getDefenceDetail = (defenceId: string) => {
    return request(`/sxpt/defence/getDefenceDetial/?defenceId=${defenceId}`, { defenceId })
}
//删除表格的数据
export let deleteDefence = (defenceId: string) => {
    console.log(defenceId, "defenceId");
    return request(`/sxpt/defence/deleteDefence/${defenceId}`, {
        method: 'DELETE',
        defenceId
    })
}
// 获取班级 、计划的数据
export let getClasssPlanTree = () => {
    return request('/sxpt/defence/getClasssPlanTree')
}
// 点击保存页面接口
export let defence = (data: sss) => {
    return request('/sxpt/defence', {
        method: 'POST',
        data
    })
}

//保存后拿到的数据
export let selectClassPlanInit = (classid: string, classPlanid: string) => {
    return request(`/sxpt/progress/selectClassPlanInit?classid=${classid}&classPlanid=${classPlanid}`, { classid, classPlanid })
}